package com.tour.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.tour.pojo.Order;

public interface OrderMapper {
	/**
	 * 删除订单编号
	 * @param orderId
	 * @return
	 */
    int deleteByPrimaryKey(Long orderId);

    /**
     * 增加订单
     * @param record
     * @return
     */
    int insert(Order record);

    
    int insertSelective(Order record);

    /**
     * 分页查找订单
     * @param orderId 
     * @return
     */
    List<Order> selectByUserId(@Param("userId")Integer userId, @Param("pageIndex")Integer pageIndex, @Param("pageSize")Integer pageSize);

    /**
     * 修改订单
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);
    
    /**
     * 订单数量
     * @return
     */
    int getOrderCount(@Param("userId")Integer userId);
}